﻿@model DAEProde.Domain.EditViewModel

@{
    ViewBag.Title = "Edit";
}

<h2>Crear Nueva Cuenta de Usuario</h2>
<p>
    Complete el formulario para crear su cuenta. 
</p>
<p>
    El password requiere un minimo de @Membership.MinRequiredPasswordLength caracteres.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Account Information</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <p>
                @Html.ActionLink("Cambiar Password", "ChangePassword")
            </p>

            <p>
                <input type="submit" value="Guardar" />
                @Html.ActionLink("Cancelar", "Index", "Home", null, null)
            </p>
        </fieldset>
    </div>
}